package org.soft.xinyu.equipmentmanagement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author vicente
 * @since 2021-11-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MachineSubmachine extends Model<MachineSubmachine> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 所属设备资产编号
     */
    private String machineId;

    /**
     * 名称
     */
    private String name;

    /**
     * 型号
     */
    private String model;

    /**
     * 单价
     */
    private String price;

    /**
     * 出场编码
     */
    private String factoryNumber;

    /**
     * 出厂日期
     */
    private String manufactureDate;

    /**
     * 购入日期
     */
    private String purchaseDate;

    /**
     * 启用日期
     */
    private String startDate;

    /**
     * 检定时间至
     */
    private String testDateTo;

    /**
     * 技术参数
     */
    private String technicalParameter;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
